# MKFILE_PATH := $(abspath $(lastword $(MAKEFILE_LIST)))

# GOBIN_UNIX := $(CURDIR)/.pkg

# ifeq ($(OS),Windows_NT)
    # 使用 cygpath 把 Cygwin 路径转成 Windows 路径
#     GOBIN := $(shell cygpath -aw $(GOBIN_UNIX))
# 	GOBIN := $(shell cygpath -m $(GOBIN_UNIX))
# else
#     GOBIN := $(GOBIN_UNIX)
# endif

print-path:
# 	@echo "$(MKFILE_PATH)"
	@echo "$(CURDIR)"
# 	@echo "Unix 风格路径: $(GOBIN_UNIX)"
# 	@echo "Windows 风格路径: $(GOBIN)"
# 	@echo "$(GOBIN)"

presql:
	mysql -uroot -proot < ./sql/baize.sql
init:
# 	@echo "GOBIN=$(GOBIN)"
# 	go env -w GOBIN=$(GOBIN)
	go install github.com/google/wire/cmd/wire@latest
	go install github.com/swaggo/swag/cmd/swag@latest
wire:
	cd app/ && wire
swag:
	cd app/ && swag  init
start:
	go run ./app/